package com.advantage.check;

import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import com.advantage.R;
import com.advantage.accounts.transactions.TransactionActivity;

/**
 * Created with IntelliJ IDEA.
 * User: hirsche
 * Date: 13/04/14
 * Time: 14:42
 * To change this template use File | Settings | File Templates.
 */
public class CheckFragment extends Fragment {


    public CheckFragment() {
        // Empty constructor required for fragment subclasses
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.check_scan, container, false);
        Button scanButton = (Button)rootView.findViewById(R.id.scan_button);
        scanButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                throw new RuntimeException("Crash!");
            }
        });

        return rootView;

    }


}
